package core;

public class Stats {
	private int Atk;
	private int Def;
	private int Vel;
	private int Mg;
	private int Arm;
	
	public Stats(int pAtk, int pDef, int pVel, int pMg, int pArm) 
	{
		Atk=pAtk;
		Def=pDef;
		Vel=pVel;
		Mg=pMg;
		Arm=pArm;
	}
	
	public int getAtk() {
		if (Atk>0)
			return 0;
		return Atk;
	}
	public void getAtk(int atk) {
		Atk = atk;
	}
	public int getDef() {
		if (Def>0)
			return 0;
		return Def;
	}
	public void setDef(int def) {
		Def = def;
	}
	public int getVel() {
		if (Vel>0)
			return 0;
		return Vel;
	}
	public void setVel(int vel) {
		Vel = vel;
	}
	public int getMg() {
		if (Mg>0)
			return 0;
		return Mg;
	}
	public void setMg(int mg) {
		Mg = mg;
	}
	public int getArm() {
		if (Arm>0)
			return 0;
		return Arm;
	}
	public void setArm(int arm) {
		Arm = arm;
	}
	
	public void masAtk(int mas)
	{
		Atk+=mas;
	}
	public void masDef(int mas)
	{
		Def+=mas;
	}
	public void masVel(int mas)
	{
		Vel+=mas;
	}
	public void masMg(int mas)
	{
		Mg+=mas;
	}
	public void masArm(int mas)
	{
		Arm+=mas;
	}
	
	public void menosAtk(int menos)
	{
		Atk-=menos;
	}
	public void menosDef(int menos)
	{
		Def-=menos;
	}
	public void menosVel(int menos)
	{
		Vel-=menos;
	}
	public void menosMg(int menos)
	{
		Mg-=menos;
	}
	public void menosArm(int menos)
	{
		Arm-=menos;
	}
	
	public boolean Igual(Stats pStats)
	{
		return (Atk==pStats.Atk && Def==pStats.Def && Vel==pStats.Vel && Mg==pStats.Mg && Arm==pStats.Arm);
	}
	
	public String toString()
	{
		return "Atk= "+Atk+"\nDef= "+Def+"\nVel= "+Vel+"\nMg= "+Mg+"\nArm= "+Arm;
	}
}
